package aop;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
	public static void main(String as[]) {
		BeanFactory factory = new ClassPathXmlApplicationContext("/aop/applicationContext.xml");
		IUser user = (IUser) factory.getBean("user");
		user.findAll();
		// user.findUser("Tom");
		// user.addUser("haha");

	}

}
